package com.woniuxy.bookmall.mapper;

import com.woniuxy.bookmall.entity.TOrder;
import com.woniuxy.bookmall.vo.OrderVo;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

public interface TOrderMapper extends Mapper<TOrder> {
    OrderVo selectOrderByKey(Long orderId);

    @Update("update t_order set state = 1 where orderNum = #{value}")
    void updateOrderOfStatus(String orderNum);
}